package com.hmall.search.interceptor;

import com.hmall.common.BaseContext;
import feign.RequestInterceptor;
import feign.RequestTemplate;
import org.springframework.stereotype.Component;

@Component
public class MyFeignInterceptor implements RequestInterceptor {
    @Override
    public void apply(RequestTemplate requestTemplate) {
        Long currentId = 2L;
        requestTemplate.header("authorization",String.valueOf(currentId));
    }
}
